package sky.wicket;

import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: Gauss
 * Date: 20.08.13
 * Time: 14:57
 * To change this template use File | Settings | File Templates.
 */
@Component("wicketApplication")
public class WicketApplication extends WebApplication {

    @Override
    protected void init() {
        super.init();
        getComponentInstantiationListeners().add(new SpringComponentInjector(this));
        getMarkupSettings().setDefaultMarkupEncoding("utf-8");
    }

    @Override
    public Class<HomePage> getHomePage() {
        return HomePage.class;
    }

    /*public static Application get() {
        return (Application) WebApplication.get();
    }*/
}
